home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 756 < prev    next >
Encoding:
Text File  |  1996-08-05  |  956 b   |  30 lines

  1. Newsgroups: comp.lang.c,comp.os.os2.programmer.misc
  2. Path: news.fyi.net!news
  3. From: fireresq@fyi.net
  4. Subject: redefining stdout and stderr
  5. X-Nntp-Posting-Host: 204.179.83.8
  6. Message-ID: <DKw9Cv.2x4@fyi.net>
  7. Sender: news@fyi.net (News User)
  8. Reply-To: fireresq@fyi.net
  9. Organization: FYI Networks
  10. X-Newsreader: IBM NewsReader/2 v1.2
  11. Date: Tue, 9 Jan 1996 03:22:07 GMT
  12.  
  13. everyting I am doing is running on OS/2 Warp Connect and using the IBM 
  14. Set++ compiler.
  15.  
  16. I have a program that I have converted form an exe to a DLL.  I used many
  17. printf's for debug and status information.
  18.  
  19. What I want to do is cause stdout and stderr to go to a file but since 
  20. this dll will be called from VisualAge I cannot redirect the output with >.
  21.  
  22. I need to change the assocation of stdout and stderr programaticly.  I 
  23. would be open for suggestions.
  24.  
  25. I need a way to close stdout and stderr.  then reopen them redircted to a
  26. file from inside my dll.
  27.  
  28. Thanks in advance!
  29. Mark Russell.
  30.